package com.lin.cms.domain;

import java.io.Serializable;

public class AdvertisingSpace implements Serializable {

	private static final long serialVersionUID = 1L;

	private int adspaceId;

	private int siteId;

	private String adName;

	private String description;

	private String isEnabled;

	public AdvertisingSpace() {
	}

	public int getAdspaceId() {
		return adspaceId;
	}

	public void setAdspaceId(int adspaceId) {
		this.adspaceId = adspaceId;
	}

	public int getSiteId() {
		return siteId;
	}

	public void setSiteId(int siteId) {
		this.siteId = siteId;
	}

	public String getAdName() {
		return adName;
	}

	public void setAdName(String adName) {
		this.adName = adName;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getIsEnabled() {
		return isEnabled;
	}

	public void setIsEnabled(String isEnabled) {
		this.isEnabled = isEnabled;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + adspaceId;

		return result;
	}
	
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		final AdvertisingSpace other = (AdvertisingSpace) obj;
		if (adspaceId != other.adspaceId)
			return false;

		return true;
	}
	
	@Override
	public String toString() {
		return getClass().getName() + "@" + Integer.toHexString(hashCode()) + 
			"(" + 
			"adspaceId=" + "'" + adspaceId + "'" + 
			")";
	}
	
}
